package com.wjk.easy.db;

import org.litepal.annotation.Column;
import org.litepal.crud.LitePalSupport;

import java.util.Date;
import java.util.List;

public class Exam extends LitePalSupport {
    @Column(defaultValue = "new exam", nullable = false)
    private String name;
    private int groups;
    private Date createTime;
    private String remark;
    private int id;
    private int userId;

    public Exam(String username, int groups, Date createTime, String remark) {
        this.name = username;
        this.groups = groups;
        this.createTime = createTime;
        this.remark = remark;
    }

    public int getUserId() {
        return userId;
    }

    public void setUserId(int userId) {
        this.userId = userId;
    }

    public int getId(){
        return this.id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getGroups() {
        return groups;
    }

    public void setGroups(int groups) {
        this.groups = groups;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public String getRemark() {
        return remark==null?"":remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }
}
